<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Insert title here</title>
  <style type="text/css"> 
      .row0{ background:#E9EFF8} 
      .row1{ background:#E6D9F7} 
  </style> 
 </head>
 <body>
 <center>
 <a href="find?pageNo=1">首页</a>
 <c:if test="${pageNo>=1}">
   <a href="find?pageNo=${pageNo-1}">上一页</a>
  </c:if>
  <c:if test="${pageNo==1}">
   <a href="find?pageNo=${pageNo+1}">下一页</a>
  </c:if>
  <table width="80%" border="1" height="56">
   <tr align="center" >
    <td>
     学生ID
    </td>
    <td>
     学生姓名
    </td>
    <td>
     学生科目
    </td>
    <td>
     学生成绩
    </td>
    <td>
     修改
    </td>
    <td>
     删除
    </td>
   </tr>
   <c:forEach var="stu" items="${list}" varStatus="rows">
    <tr class="row${rows['count']%2}">
     <td>
      <c:out value="${stu['id']}"/>
     </td>
     <td>
      <c:out value="${stu['username']}"/>
     </td>
     <td>
      <c:out value="${stu['subject']}"/>
     </td>
     <td>
      <c:out value="${stu['score']}"/>
     </td>
     <td>
     	<a href="../Students/Change.jsp?id=${stu['id']}">修改</a>
     </td>
     <td>
     	<a href="delstu.action?id=${stu['id']}&username=${stu['username']}&subject=${stu['subject']}&score=${stu['score']}">删除</a>
     </td>
    </tr>
   </c:forEach>
  </table>
  </center>
 </body>
 </html>